﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;
using CBM.Contract.Enitities;
using CBM.Contract.Implementation.Entities;
using CBM.Contract.DataAccess;
using CBM.DataAccess.DPC;
using StripboekManager.Contract.Command;
using StripboekManager.Contract.Implementation.Command;

namespace CBM.Container
{
    public class ComicBookContainer:UnityContainer
    {
        public ComicBookContainer()
        {
            RegisterEntities();
            RegisterDataAcces();
        }

        private void RegisterDataAcces()
        {
            this.RegisterType<IAuthor, Author>();
            this.RegisterType<IComicBook, StripBoek>();   
        }

        private void RegisterEntities()
        {
            this.RegisterType<ISelectStripBoek, ComicBookDPC>();
            this.RegisterType<ICBMCommand, CBMCommand>();
        }
     
    }
}
